package cn.wolfcode.luowowo.comment.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * 游记评论
 */
@Setter
@Getter
@Document("scenic_rep_comment")
public class ScenicRepComment implements Serializable {
    public static final int SCENIC_REP_COMMENT_TYPE_COMMENT = 0; //普通评论
    public static final int SCENIC_REP_COMMENT_TYPE = 1; //评论的评论
    @Id
    private String id;
    private String commentId;
    private Long userId;
    private String username;
    private int level;
    private String headUrl;
    private int type = SCENIC_REP_COMMENT_TYPE_COMMENT;
    private Date createTime;
    private String content;
    private String toId;
    private String toName;
    private Integer state;
}